import { HttpClient } from './HttpClient';

export class Captcha {
  private readonly httpClient: HttpClient;

  constructor(baseUrl: string) {
    this.httpClient = new HttpClient(baseUrl);
  }

  getHttpClient() {
    return this.httpClient;
  }

  async createOtpAuthSecret(type: string, body: Record<string, string>) {
    return await this.httpClient.post(`/skinny-google-captcha/secret/${type}`, body);
  }

}